Repository navigation
chore(acceptance): make imgproxy dev errors env config - #1789
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The remote acceptance job omits the new development-errors-mode variable, causing false settings to default to true and the HEIF test to incorrectly expect 400 against production-mode imgproxy.
1 open issue
What changed in this PR
Makes invalid-HEIF acceptance expectations configurable for imgproxy development-error mode, complementing the v4 error mapping in #1788.
Changes:
- Adds a configuration flag defaulting to
true. - Expects HTTP 400 with development errors enabled, or 500 otherwise.
- Documents the environment variable.
| File | Description |
|---|---|
| acceptance/support/config.ts | Adds the development-error mode option. |
| acceptance/specs/render.test.ts | Selects expected error responses based on the option. |
| acceptance/README.md | Documents configuration and expected behavior. |
Review effort: Balanced
Signed-off-by: Ferhat Elmas <[email protected]>
ferhatelmas
force-pushed
the
ferhat/acceptance-imgproxy-dev-errors
branch
from
December 2, 2026 12:19
0c173c6 to
e572c23
Compare
Coverage Report for CI Build 46879952179Coverage remained the same at 88.855%Details
Uncovered ChangesNo uncovered changes found. Coverage RegressionsNo coverage regressions found. Coverage Stats💛 - Coveralls |
TylerHillery
approved these changes
Dec 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

What kind of change does this PR introduce?
chore
What is the current behavior?
The acceptance test for rendering an invalid HEIF image always expects a 400 InvalidRequest response.
What is the new behavior?
The test uses
ACCEPTANCE_IMGPROXY_DEVELOPMENT_ERRORS_MODEto choose the expected response respective imgproxy development error config.Additional context
Related to #1788